namespace Medical.Domain
{
    public class Permission
    {
        public long PermissionId { get; set; }
        /// <summary>显示名称（如 系统管理/门诊管理 等）</summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>编码（如 system.manage）</summary>
        public string Code { get; set; } = string.Empty;
        /// <summary>分组（用于界面分组显示）</summary>
        public string? Group { get; set; }
        public string? Description { get; set; }
        public bool IsMenu { get; set; } = true;
        public bool IsActive { get; set; } = true;
        public DateTime CreatedAt { get; set; } = DateTime.Now;
        public DateTime UpdatedAt { get; set; } = DateTime.Now;
    }
}
